package net.droiding.server.pojo;

import java.util.ArrayList;
import java.util.List;


public class Station {
	private int id = 0;
	private String key = null;
	private ProviderKey providerKey = null;
	private String location = null;
	private double latitude = 0d;
	private double longitude = 0d;	
	private long lastUpdate = 0l;
	private List<StationData> data = new ArrayList<StationData>();

	public Station() {
		
	}
	
	public Station(String key, ProviderKey providerKey, String location, double latitude, double longitude, StationData data) {
		this.key = key;
		this.providerKey = providerKey;
		this.location = location;
		this.latitude = latitude;
		this.longitude = longitude;
		this.data.add(data);
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public ProviderKey getProviderKey() {
		return providerKey;
	}

	public void setProviderKey(ProviderKey providerKey) {
		this.providerKey = providerKey;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public List<StationData> getData() {
		return data;
	}

	public void setData(List<StationData> data) {
		this.data = data;
	}

	public long getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(long lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
